package com.sun.service.impl;

import com.sun.dao.BUserDao;
import com.sun.entity.BUser;
import com.sun.service.BUserService;
import com.sun.utils.Md5Utils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


/**
 * (BUser)表服务实现类
 *
 * @author makejava
 * @since 2021-01-07 16:29:23
 */
@Service("bUserService")
public class BUserServiceImpl implements BUserService {
    @Resource
    private BUserDao bUserDao;


    @Override
    public BUser checkUser(String username, String password) {


        return bUserDao.findUserByNamePwd(username, Md5Utils.code(password));
    }
}